package com.hs.srm.base.modules.sys.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hs.srm.base.common.utils.QueryParam;
import com.hs.srm.base.modules.sys.dao.SysAreasDao;
import com.hs.srm.base.modules.sys.entity.SysAreasEntity;
import com.hs.srm.base.modules.sys.service.SysAreasService;
import com.hs.srm.common.utils.PageUtils;

@Service("sysAreasService")
public class SysAreasServiceImpl extends ServiceImpl<SysAreasDao, SysAreasEntity> implements SysAreasService {

	@Override
	public PageUtils queryPage(Map<String, Object> params) {
		Page<SysAreasEntity> page = this.selectPage(new QueryParam<SysAreasEntity>(params).getPage(),
				new EntityWrapper<SysAreasEntity>());

		return new PageUtils(page);
	}

}
